package sessions;

import java.util.List;

import javax.ejb.Local;

import entities.Feedback;
import entities.HelpRequest;
import entities.User;
import exceptions.FeedbackException;
import exceptions.HelpRequestException;

@Local
public interface HelpManagerLocal {

	public void request(User fromUser, User toUser, String message)
			throws HelpRequestException;

	public List<HelpRequest> fetchIncoming(String username);

	public List<HelpRequest> fetchOutgoing(String username);

	public HelpRequest fetch(int id);

	public void accept(HelpRequest hr);

	public void refuse(HelpRequest hr);

	public void addFeedback(int evaluation, String comment, HelpRequest hr)
			throws FeedbackException;
	
	public List<Feedback> fetchReceivedFeedback(String username);
	
	public List<HelpRequest> fetchRequestWithFeedback();

}
